<?php
include '../../include/db.php';
$activityId = $_REQUEST["id"];
$options = $_REQUEST["options"];
$hash = $_REQUEST["hash"];
foreach ($options as $option) {
    InsertVote($activityId, $option);
}
echo 'ok';